﻿using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using User.Web.UI.Controllers;

namespace User.Web.UI.Tests.Unit.ControllerTests
{
    [TestClass]
    public class AdminControllerTest
    {
        [TestInitialize]
        public void Initialize()
        {
        }

        [TestMethod]
        public void Index_View()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("Index", result.ViewName);
        }
    }
}
